package com.hjy.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjy.common.utils.PageUtils;
import com.hjy.order.vo.WareSkuLockVo;
import com.hjy.ware.entity.WareSkuEntity;
import com.hjy.ware.vo.SkuHasStockVo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author hjy
 * @email 2402668109@qq.com
 * @date 2022-07-16 12:09:00
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void addStock(Long skuId, Long wareId, Integer skuNum);

    List<SkuHasStockVo> hasStock(List<Long> list);

    Boolean orderLockStock(WareSkuLockVo vo);
}

